package store.lunangangster.engine.bpmn.parser.handler;

import store.lunangangster.bpmn.model.Activity;
import store.lunangangster.bpmn.model.Task;
import store.lunangangster.engine.bpmn.parser.BpmnParser;
import store.lunangangster.engine.impl.bpmn.behavior.TaskBehavior;

public class TaskParseHandler extends ActivityParseHandler<Task> {

  @Override
  public void handle0(BpmnParser bpmnParser, Task task) {
    task.setBehavior(new TaskBehavior());
  }

  @Override
  public Class<? extends Activity> getType() {
    return Task.class;
  }
}
